/**
 * Front End Paging
 */
var frontEndPager = {
    itemSize: 0,
    pageSize: 8,

    init: function (itemSize, changePage) {
        this.itemSize = itemSize;

        $("#pageList").pagination({
            items: this.itemSize,
            itemsOnPage: this.pageSize,
            displayedPages: 2,
            edges: 1,
            cssStyle: 'light-theme',
            onPageClick: changePage,
            prevText: '上一页',
            nextText: '下一页'
        });
    },

    getCurrentPage:function(){
        return $("#pageList").pagination('getCurrentPage');
    }

}